<#macro combobox field>  
	{
		xtype : 'combo',
		fieldLabel : '${field.fieldLabel!}'
	<#if (field.displayField?if_exists!="") >
		,displayField : '${field.displayField }'
		,name : '${field.displayField}'
	<#else>
		,displayField : '${field.name}_displayField_text'
		,name : '${field.displayField}_displayField_text'
	</#if>
	<#if (field.minLength??&&field.minLength > 0) >
		,minLength : ${field.minLength}
	</#if>
	<#if (field.colspan??&&field.colspan > 1) >
		,colspan : ${field.colspan}
	</#if>
	<#if (field.maxLength??&&field.maxLength > 0) >
		,maxLength : ${field.maxLength}
	</#if>
	<#if (field.height??&&field.height > 0) >
		,height : ${field.height}
	</#if>
	<#if (field.width??&&field.width > 0) >
		,width : ${field.width}
	</#if>
	<#if (field.cls?if_exists!="") >
		,cls : '${field.cls}'
	</#if>
	<#if (field.hidden?if_exists=true) >
		,hidden : true
	</#if>
	<#if (field.hideLabel?if_exists=true) >
		,hideLabel : true
	</#if>
	<#if (field.readOnly?if_exists=true) >
		,readOnly : true
	</#if>
	<#if (field.disabled?if_exists=true) >
		,disabled : true
	</#if>
	<#if (field.allowBlank?if_exists=false) >
		,allowBlank : false
	</#if>
	<#if (field.name?if_exists!="") >
		,valueField : '${field.name}'
		,hiddenName : '${field.name}'
	</#if>
	<#if (field.listWidth??&&field.listWidth > 0) >
		,listWidth : ${field.listWidth}
	</#if>
		,store:new Ext.data.Store({
    		autoLoad:{
	    		params:{
		    			sourcetable:'${field.sourcetable}'
		    		<#if (field.sourcecolumn?if_exists!="") >
		    			,sourcecolumn:'${field.sourcecolumn}'
		    		</#if>
		    		<#if (field.sourcedisplay?if_exists!="") >
		    			,sourcedisplay:'${field.sourcedisplay}'
		    		</#if>
		    		<#if (field.displayField?if_exists!="") >
						,displayField : '${field.displayField }'
					<#else>
						,displayField : '${field.name}_displayField_text'
					</#if>
	    		}
    		},
			proxy : new Ext.data.HttpProxy({
				url :  basepath+"../sysControl/dic/DicCommonContorller/getComboData.do"
			}),
			reader : new Ext.data.JsonReader({
				id : '<#if (field.sourcecolumn?if_exists!="") >${field.sourcecolumn}<#else>id</#if>'
			}, Ext.data.Record.create([{
				name : '<#if (field.sourcecolumn?if_exists!="") >${field.sourcecolumn}<#else>id</#if>',
				type : 'string'
			}, {
				name : "<#if (field.sourcedisplay?if_exists!="") >${field.sourcedisplay}<#else>${field.name}_displayField_text</#if>",
				type : 'string'
			}]))
		})
		,value : '${field.value!}'
		,mode : 'local'
		,editable :false
		,triggerAction : 'all'
	
	}
</#macro>
